package com.it235.seata.business.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2022/1/18 1:25
 */
@FeignClient(name = "storage-service")
@Component
public interface StorageClient {

    @GetMapping("storage/change")
    Boolean changeStorage(@RequestParam("productId") long productId, @RequestParam("used") int used);
}


